/**
 * 路由表
 */
export const routes = [
    {
        path: "/",
        name: "layout",
        component: () => import("/@/layout/index.vue"),
        redirect: "/park",
        children: [
            {
                path: "/park",
                meta: {title: "果园",parentPath: "/park",},
                name: "park",
                component: () => import("/@/views/park/index.vue"),
            },
            {
                path: "/park/add",
                meta: {title: "新增", parentPath: "/park",},
                name: "parkAdd",
                component: () => import("/@/views/park/Add.vue"),
            },
            {
                path: "/tree",
                meta: {title: "果树",parentPath: "/park",},
                name: "tree",
                component: () => import("/@/views/tree/index.vue"),
            },
            {
                path: "/tree/detail",
                meta: {title: "果树详情",parentPath: "/tree",},
                name: "detail",
                component: () => import("/@/views/tree/Detail.vue"),
            },
            {
                path: "/tree/add",
                meta: {title: "果树新增",parentPath: "/tree",},
                name: "add",
                component: () => import("/@/views/tree/Add.vue"),
            },
            {
                path: "/tree/group",
                meta: {title: "分组",parentPath: "/tree",},
                name: "group",
                component: () => import("/@/views/group/index.vue"),
            },
            {
                path: "/manage",
                meta: {title: "系统管理",parentPath: "/park",},
                name: "manage",
                component: () => import("/@/views/manage/index.vue"),
            },
            {
                path: "/manage/type",
                meta: {title: "类型管理", parentPath: "/manage",},
                name: "typeManage",
                component: () => import("/@/views/manage/typeManage/index.vue"),
            },
            {
                path: "/manage/type/add",
                meta: {title: "新增类型",parentPath: "/manage/type",},
                name: "typeManageAdd",
                component: () => import("/@/views/manage/typeManage/Add.vue"),
            },
            {
                path: "/chart",
                meta: {title: "数据",parentPath: "/park",},
                name: "chart",
                component: () => import("/@/views/chart/index.vue"),
            },
            {
                path: "/404",
                meta: {title: "404"},
                name: "404",
                component: () => import("/@/views/404.vue"),
            },
        ],
    },
];
